#include <stdio.h>
int main()
{
    int a = 40, c = 212, z;
    z = (-8 + 22) * a - 10 + c / 2;
    printf("%d", z);

    return 0;
}